<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ParametroDao
 *
 * @author JOSE
 */
class PruebaBO extends GeneralSisResBO{
    
    var $pruebaDao;
    var $className;
    var $opcionDao;

    public function __construct() {
        $this->className = 'PruebaBO';
        LogUtil::info("class $this->className", "__construct");
        $this->pruebaDao = DAOFactory::getPruebaDao();
        $this->opcionDao = DAOFactory::getOpcionDao(); 
    }

    public function __destruct() {
        LogUtil::info("class $this->className", "__destruct");
    }

    public function accion() {
       LogUtil::info("class $this->className", "accion");       
       try{           
           Transaction::beginTransaction();           
           $this->pruebaDao->insertPrueba('wp_sisres_prueba','7','7');           
           $this->pruebaDao->insertPrueba('wp_sisres_prueba2','8','8');           
           Transaction::commitTransaction();                      
       }catch(Exception $e){
           Transaction::rollbackTransaction();
           LogUtil::info("class $this->className", $e->getMessage());
           throw new Exception($e->getMessage(), $e->getCode());
       }
    }

}
?>
